<%@page import="bean.MboardVO"%>
<%@page import="bean.MboardDTO"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>mboard_modi</title>
<link rel="stylesheet" href="../css/mboardmodi.css">
<script src="../js/mboard.js"></script>
</head>
<body>
<jsp:useBean id="vo" class="bean.MboardVO" scope="page"></jsp:useBean>
<jsp:setProperty property="*" name="vo"/>
<%
MboardDTO dto = new MboardDTO();
dto.setVo(vo);
MboardVO v = dto.selectone();

%>
<div>
<form method="post" action="board_main.jsp?inpage=../mboard/mboard_modi_r.jsp&rno=<%=vo.getRno()%>" name ="mboardfrm" enctype="multipart/form-data">
	<label><select name="category" size="1">
		<option value="잡담">잡담
		<option value="JAVA">JAVA
	</select></label>
	
	<label>제목<input type="text" name="subject" size="20" value="<%=v.getSubject()%>"></label><br><br>
	
	<textarea rows="" cols=""name="content" style='resize:none;'><%=v.getContent() %></textarea><br><br>
		
	<label>태그<input type="text" name="tag" size="10" value="<%=v.getTag()%>"></label><br><br>
	
	<label>첨부파일 : <%=v.getAttfile()%></label><br><br>
	<label><input type="file" name="attfile"></label><br><br>
	
	<input type="hidden" name="mid" value="<%=session.getAttribute("sessionMid")%>">
	
	<input type="hidden" name="lev" value="1">
	
	<input type="button" value="저장" id ="btnsave">
	<input type="button" value="취소" id ="btncan">
	<input type="button" value="목록으로" id="btnlist">
</form>
</div>
<input type="hidden" id="rno" value="<%=vo.getRno()%>">

<script>modiinit();</script>
</body>
</html>